When the direct action request handler receives the handleRequest: message from the application, its first step is to determine what action should be performed and by what object. It does so by looking at the request URL. The URL for a direct action request looks like the one shown in Figure 27.
Figure 27. Direct Action Request URL
The WODirectAction class field is optional. If the WODirectAction class isn't specified in the URL, a subclass named DirectAction is assumed.
If the request is the first one for a given user session, the request URL looks like the URL shown in Figure 20. This URL contains neither a WODirectAction class name nor an action name. In this case, the direct action request handler assumes that the action to be performed is the defaultAction method in the class DirectAction. Remember that the direct action request handler does not process the first request in a session unless you send the setDefaultRequestHandler: to the WOApplication and specify the WODirectActionRequestHandler.
With direct actions, all input values are in the WORequest object as form values. If the form method was a "GET" then the URL contains the form values.
Table of Contents
Next Section